<template>
	<view class="mainpadding">
		<view class="flexleft">
			<view class="line"></view>
			<view class="titletext bold hei_text margin_left1">基本资料</view>
		</view>
		<view class="flexbetween mainpadding ffffff radius margin_top">
			<view class="ershib" style="min-width: 200rpx;">性别</view>
			<view class="flexright">
				<input class="inputs " type="text" style="text-align: right;" placeholder="请选择性别" disabled="">
				<u-icon name="arrow-right" size="16" color="#333"></u-icon>
			</view>
		</view>
		<view class="flexbetween mainpadding ffffff radius margin_top" @click="messageTime.timeShow=true">
			<view class="ershib" style="min-width: 200rpx;">出生年月</view>
			<view class="flexright">
				<input class="inputs " type="text" style="text-align: right;" placeholder="请选择" disabled v-model="time">
				<u-icon name="arrow-right" size="16" color="#333"></u-icon>
			</view>
		</view>
		<view class="flexbetween mainpadding ffffff radius margin_top" @click="pickerdzshow=true">
			<view class="ershib" style="min-width: 200rpx;">当前居住城市</view>
			<view class="flexright">
				<input class="inputs " type="text" style="text-align: right;" placeholder="请选择" disabled v-model="city_text">
				<u-icon name="arrow-right" size="16" color="#333"></u-icon>
			</view>
		</view><view class="flexbetween mainpadding ffffff radius margin_top">
			<view class="ershib" style="min-width: 200rpx;">职业</view>
			<view class="flexright">
				<input class="inputs " type="text" style="text-align: right;" placeholder="请选择" disabled>
				<u-icon name="arrow-right" size="16" color="#333"></u-icon>
			</view>
		</view>
		<view class="submitbtn margin_top6" @click="submit">确定</view>
		<timePicker :messageTime="messageTime" @timeConfirm="timeConfirm"></timePicker>
		<pickercity :messageInfo="{pickerdzshow:pickerdzshow}" @surecity="surecity"></pickercity>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				messageTime:{
					timeShow:false,
					title:"选择出生年月",
					mode:"date"//date日期，datetime年月日时分秒，time时间
				},
				pickerdzshow:false,
				cityinfo:{},
				time:"",
				city_text:"",
			}
		},
		methods: {
			timeConfirm(e){
				this.time = e
			},
			surecity(e) {//选择城市
				this.pickerdzshow = false
				if(e){
					this.cityinfo = e
					this.city_text = e.provence + "/" + e.city
				}
			},
			submit(){
				uni.navigateBack({
					delta:2
				})
			},
		}
	}
</script>

<style>

</style>
